/*
 *  RunTab.cpp
 *  tevolution
 *
 *  Created by tjmitche on 16/04/2009.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

#include "RunTab.h"

RunTabComponent::RunTabComponent()
{
	Slider* slider;
	
	addAndMakeVisible (slider = new Slider (T("slider")));
	slider->setRange (0.0, 100.0, 0.1);
	slider->setPopupMenuEnabled (true);
	slider->setValue (Random::getSystemRandom().nextDouble() * 100.0, false, false);
	
	slider->setSliderStyle (Slider::LinearVertical);
	slider->setTextBoxStyle (Slider::TextBoxBelow, false, 100, 20);
	slider->setBounds (100, 25, 70, 200);
	slider->setDoubleClickReturnValue (true, 50.0); // double-clicking this slider will set it to 50.0
	slider->setTextValueSuffix (T(" units"));
	
	Label* label = new Label (T("hint"), T("Try right-clicking on a slider for an options menu. \n\nAlso, holding down CTRL while dragging will turn on a slider's velocity-sensitive mode"));
	label->setBounds (20, 245, 350, 150);
	addAndMakeVisible (label);
	
}

RunTabComponent::~RunTabComponent()
{
	deleteAllChildren();
}
//==============================================================================